package com.hs.mapper;

import com.hs.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName ArticleMapper
 * @Description TODO
 * @Author libowen
 * @Date 2025年08月01日 10:38
 * @Version 1.0
 */
public interface ArticleMapper {
    int addArticle(Article article);
    int deleteArticleById(int id);
    int deleteArticleByIds(@Param("ids") int[] ids);
    int updateArticle(Article article);
    Article getArticleById(int id);
    List<Article> getAllArticle(Article article);

}
